package chain_of_responsibility_pattern.v2;

/**
 * 经理类
 * @author ricejson
 */
public abstract class Manager {
    protected String name;
    protected Manager superior;

    public Manager(String name) {
        this.name = name;
    }

    public void setSuperior(Manager superior) {
        this.superior = superior;
    }

    /**
     * 处理请求
     * @param request 请求
     */
    public abstract void handleRequest(Request request);
}
